import http from '@/utils/request'
//获取部门列表
export async function getDeptListApi(){
    return await http.get("/dept/list")
}
//获取部门信息
export async function getDeptByIdApi(parm){
  return await http.getRestApi("/dept/list",parm)
}
//获取上级部门树数据
export async function getParentTreeApi(){
    return await http.get("/dept/plist")
}
//新增部门
export async function addDeptApi(parm){
    return await http.post("/dept",parm)
}
//编辑部门
export async function editDeptApi(parm){
    return await http.put("/dept",parm)
}
//删除部门
export async function deleteDeptApi(parm){
  return await http.delete("/dept",parm)
}
